package homeJava;

import java.util.Scanner;

public class J07101 {

	public static void main(String[] args) {

		Scanner sc = null;
		int que =1|2;
		int ySal;
		
		sc = new Scanner(System.in);
		System.out.print("1.미혼/ 2.기혼 : ");
		que = sc.nextInt();
		System.out.print("연봉 : ");
		ySal = sc.nextInt();
		
		
		if (que==1){
			if (ySal>=3000){System.out.println(ySal*0.25);}
			else System.out.println(ySal*0.01);
	          }
		else if (que==2){
			if (ySal >=6000) System.out.println(ySal*0.35);}
			else System.out.println(ySal*0.15);
		
		sc.close();
	}

}
